#include "StdAfx.h"
#include "PartyState.h"



PartyState::PartyState()
{
	Init();
}

PartyState::~PartyState()
{
}


VOID PartyState::Init()
{
	m_State = PARTY_STATE_BE_FREE;
	m_dwOtherUserKey = INITIAL_KEY_VALUE;
	m_wPartyKey = INITIAL_KEY_VALUE;
	m_bMaster = FALSE;
}

VOID PartyState::JoinParty( WORD wPartyKey, bool bMaster )
{
	m_wPartyKey = wPartyKey;
	m_bMaster = bMaster;

	SetState( PARTY_STATE_BE_MEMBER );
}



